import { createApp } from 'vue'
// import './style.css'
import LoginView from "./view/LoginView.vue";
import App from "./App.vue";
import zhCn from 'element-plus/es/locale/lang/zh-cn'

// ElementPlus表示为导入组件，createApp表示为导入函数
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import router from "./router/router.js";
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

let app = createApp(App);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.use(ElementPlus,{
  locale: zhCn
}).use(router);
app.mount('#app')
